package com.frxuexi.shop2307.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.Menu
import com.frxuexi.lib_base.utils.GlideUtils
import com.frxuexi.shop2307.R

class HomeMenuAdapter:BaseQuickAdapter<Menu,BaseViewHolder>(R.layout.item_home_menu) {

    override fun convert(helper: BaseViewHolder, item: Menu) {
        helper.setText(R.id.menu_title,item.name)
        GlideUtils.getCircleImage(helper.getView(R.id.menu_iv),item.pic)
    }
}